# 序数表示位置，如1st和2nd。序数大多以th结尾，只有1、2和3例外

nums = list(range(1, 10))

for num in nums:
    if num == 1:
        print("1st")
    elif num == 2:
        print("2nd")
    elif num == 3:
        print("3rd")
    else:
        print(f"{num}th")
